package com.stylefeng.guns.rest.modular.App.service;


import com.baomidou.mybatisplus.service.IService;
import com.stylefeng.guns.core.model.CommonKeyValue;
import com.stylefeng.guns.core.model.Pager;
import com.stylefeng.guns.rest.modular.App.model.OrderNoteDict;


import java.util.List;
import java.util.Map;
/**
  * 订单备注字典 Service接口
  * @author sasazaixian
  * @Date 2018-12-25 10:44 
 */
public interface IOrderNoteDictService extends IService<OrderNoteDict> {

    /**
     * 删除订单备注字典
     * @param orderNoteDict
     * @return     
     */
    int deleteOrderNoteDict(OrderNoteDict orderNoteDict, String token)throws Exception;
    /**
     * 批量删除订单备注字典
     * @param ids 主键ID数组
     * @return     
     */
    int deleteBatchOrderNoteDict(String[] ids, String token)throws Exception;
    /**
     * 查询订单备注字典列表
     * @param orderNoteDict 订单备注字典对象
     * @return     
     */
    List<OrderNoteDict> selectListOrderNoteDict(OrderNoteDict orderNoteDict, String token)throws Exception;

	/**
     * 分页查询订单备注字典列表
     * @param pager 分页对象
     * @return     
     */
    Map pageListOrderNoteDict(Pager pager, String token) throws Exception;

    /**
     * 同一个事务 互斥锁查询
     * @param orderNoteDict 订单备注字典对象
     * @return     
     */
    List<OrderNoteDict> selectListOrderNoteDictForUpdate(OrderNoteDict orderNoteDict)throws Exception;
    /**
     * 通过主键id查询的订单备注字典列表
     * @param id 主键id
     * @return     
     */
    OrderNoteDict findOrderNoteDictById(String id, String token)throws Exception;

    /**
     * 新增订单备注字典数据
     * @param orderNoteDict  订单备注字典对象
     * @return
     */
    int insertOrderNoteDict(OrderNoteDict orderNoteDict, String token) throws Exception ;
    /**
     * 更新订单备注字典数据
     * @param orderNoteDict 订单备注字典对象
     * @return     
     */
    int updateOrderNoteDict(OrderNoteDict orderNoteDict, String token) throws Exception ;

}
